<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>在线投票</title>
    <style>
        h1 {
            text-align: center;
        }

        .main {
            width: 50%;
            margin: 0 auto
        }

        .main table {
            width: 100%
        }
        #x0,#x1{width: 30px;height: 30px;display: none}
        #code{cursor: pointer;}
    </style>
</head>
<body>
<h1>请输入验证码</h1>
<?php
$carID = $_GET['carid'];
?>
<div class="main">
    <form action="vote.php" method="get" >
        <table style="border-collapse:collapse " border="1" cellpadding="10" bordercolor="gray" cellspacing="0">
            <tr>
                <td align="center">验证码</td>
                <td align="left">
                    <input name="code" >
                    <img src="code.php" id="code" title="点击刷新" alt="点击刷新">
                </td>
            </tr>
            <tr>
                <td align="center">
                    <input type="submit" value="提交">
                    <input type="hidden" name="carid" value="<?php echo $carID;?>">
                </td>
                <td align="left"><input type="reset" value="重置"></td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>